package jiechen;

public class Test2 {
    public static void main(String[] args) {
        System.out.println(getSum(4));
    }
    public static int getSum(int n){
        if(n==1){
            return 1;
        }
        else return getSum(n-1)*n;
    }
}
